package com.tridion.utilities.verifier.model.internal;

import java.util.List;

import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;

import com.tridion.utilities.verifier.model.JarFile;

@XmlAccessorType(XmlAccessType.FIELD)
public class Release {

    @XmlAttribute(name="name")
    private String name;
    
    @XmlAttribute(name="version")
    private String version;
    
    @XmlAttribute(name="build")
    private int build;
    
    @XmlElementWrapper(name="jars")
    @XmlElement(name="jar")
    private List<JarFile> jars;
    
    @XmlElementWrapper(name="minorReleases")
    @XmlElement(name="minorRelease")
    private List<Release> minorReleases;

    public List<JarFile> getJars() {
        return jars;
    }

    /**
     * Gets the name of the release.
     * 
     * @return the name of the release.
     */
    public String getName() {
        return name;
    }

    /**
     * Sets the name of the release.
     * 
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * Gets the version of the release.
     * 
     * @return the version of the release.
     */
    public String getVersion() {
        return version;
    }

    /**
     * Sets the version of the release.
     * 
     * @param version the version to set
     */
    public void setVersion(String version) {
        this.version = version;
    }

    /**
     * @return the minorReleases
     */
    public List<Release> getMinorReleases() {
        return minorReleases;
    }

    /**
     * @return the build
     */
    public int getBuild() {
        return build;
    }
}
